Operations:

Format

Syntax:

Operation:

Operands:

Architecture revision

Opcode

1

castu.h Rd

Rd[31:16] = 0;
d ∈ {0, 1, …, 15}

Rev1+

010111000111

Rd

12

4

2

castu.b Rd

Rd[31:8] = 0:
d ∈ {0, 1, …, 15}

Rev1+

010111000101

Rd

12

4

Description

Zero extends the halfword or byte that is specified to word size. The result is stored back to the specified register.

Status Flags:

Q:

Not affected.

V:

Not affected.

N:

N = RES[31]

Z:

Z = (RES[31:0] == 0)

C:

C = RES[31]